package flc.ast.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.stark.midi.lib.model.MidFileBean;

import java.util.List;

import flc.ast.R;
import stark.common.basic.adaptermutil.StkProviderMultiAdapter;
import stark.common.basic.utils.MathUtil;

public class HotMusicAdapter extends StkProviderMultiAdapter<MidFileBean> {

    public HotMusicAdapter() {
        addItemProvider(new HotMusicItemProvider());
    }

    private class HotMusicItemProvider extends BaseItemProvider<MidFileBean> {
        @Override
        public int getItemViewType() {
            return StkProviderMultiAdapter.TYPE_VIEW;
        }

        @Override
        public int getLayoutId() {
            return R.layout.item_hot_music;
        }

        @Override
        public void convert(@NonNull BaseViewHolder baseViewHolder, MidFileBean midFileBean) {
            baseViewHolder.setText(R.id.tvHotMusicItemName, midFileBean.getFileName());
        }
    }
}
